import {Injectable} from '@angular/core';
import {HttpClient} from '@angular/common/http';
import {Observable} from 'rxjs';
import {Env} from '../../../environments/Env';

@Injectable({
  providedIn: 'root'
})
export class AboutService {

  constructor(private http: HttpClient) {
  }

  public getProfileDesc(): Observable<any> {
    return this.http.get(`${Env.getDomain()}/blog/about/getProfileDesc`);
  }
  public getProfileIntrod(): Observable<any> {
    return this.http.get(`${Env.getDomain()}/blog/about/getProfileIntrod`);
  }

  public getActivityList(): Observable<any> {
    return this.http.get(`${Env.getDomain()}/blog/about/getActivities`);
  }
}
